#if !defined(ximera_gui_cegui_radiobutton_hpp)
#define ximera_gui_cegui_radiobutton_hpp

// -----------------------------------------------------------

#include <ximera/gui/iradiobutton.hpp>
#include <ximera/gui/cegui/windowtemplate.hpp>

#include <elements/CEGUIRadioButton.h>

namespace ximera { namespace gui { namespace cegui
{
    class XIMERA_PLUGIN_API RadioButton : public WindowTemplate<IRadioButton>
    {
    public:
        RadioButton(CEGUI::RadioButton* ceguiRadioButton)
            : WindowTemplate<IRadioButton>(ceguiRadioButton) {}

        virtual bool checked() const;
        virtual void checked(bool value);

        virtual UInt32 groupID() const;
        virtual void groupID(UInt32 id);

        CEGUI::RadioButton* ceguiRadioButton() const { return static_cast<CEGUI::RadioButton*>(_ceguiWindow); }
    };
}}}

// -----------------------------------------------------------

#endif
